package com.xueyi.system.BasePlantKind.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.xueyi.system.BasePlantBreed.domain.dto.BasePlantBreedDto;
import com.xueyi.system.BasePlantKind.domain.dto.BasePlantKindDto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;
import com.xueyi.system.plantManager.domain.dto.BasePlantManagerDto;

import java.util.List;

/**
 * 种植种类 持久化对象
 *
 * @author xueyi
 */
@TableName(value = "base_plant_kind", excludeProperty = {"remark", "sort"})
public class BasePlantKindPo extends TBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 种类编码
     */
    @Excel(name = "种类编码")
    @TableField("code")
    private String code;

    /**
     * 状态
     */
    @Excel(name = "状态")
    @TableField("status")
    private String status;


    @TableField(exist = false)
    private List<BasePlantManagerDto> list;

    @TableField(exist = false)
    private List<BasePlantBreedDto> breedList;


    public List<BasePlantBreedDto> getBreedList() {
        return breedList;
    }

    public void setBreedList(List<BasePlantBreedDto> breedList) {
        this.breedList = breedList;
    }

    public List<BasePlantManagerDto> getList() {
        return list;
    }

    public void setList(List<BasePlantManagerDto> list) {
        this.list = list;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    @Override
    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String getStatus() {
        return status;
    }

}
